<layout name="master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">类型属性管理</a></li>
    <li><a href="#">类型属性列表</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">类型属性列表</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">类型属性列表</header>
            <div class="panel-body">
                <form role="form" action="" method="post">
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>属性id</th>
                            <th>属性名称</th>
                            <th>属性类型</th>
                            <th>属性值</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="listsData" id="v">
                            <tr>
                                <td>{$v['tpid']}</td>
                                <td>{$v['tpname']}</td>
                                <td>
                                    <if condition="$v['tptype'] == 1 ">属性
                                        <else /> 规格
                                    </if>
                                </td>
                                <td>{$v['tpvalue']}</td>
                                <td>
                                    <div class="btn-group">
                                        <a href="{:u('addTproperty',['tpid'=>$v['tpid'],'tid'=>$_GET['tid']])}" class="btn btn-success btn-xs">编辑</a>
                                    </div>
                                    <div class="btn-group">
                                        <a attr-url="admin/tproperty/delTproperty" attr-id="{$v['tpid']}" class="btn btn-danger btn-xs xm-del">删除</a>
                                    </div>
                                </td>
                            </tr>
                        </volist>
                        </tbody>

                    </table>
                    <a href="{:u('addTproperty',['tid'=>$_GET['tid']])}" class="btn btn-info">添加类型属性</a>
                </form>
            </div>
        </section>
    </div>
</div>
<script>
    function controller($scope, $, _) {
    }
</script>
